<html>
<?php
$today = getdate();
$include_path = "./";
include_once './util/log_writer.php';
// Load properties file
// for test uncomment this line
$config_file = parse_ini_file("../properties/config.ini");
include_once('./util/db_manager.php');
$lw = LogWriter::getInstance("../properties/log4php-level1.properties");
$lw->debug("Loading menu");
$dbManager = DBManager::getInstance($config_file);
$lw->debug("get db manager");
$conn = $dbManager->fetchConnection();
?>
<script type="text/javascript">
webRoot = "<?php echo $config_file['web_root']?>";
</script>
<?php 
$lw->debug("Accessing wetc");
//for production uncomment this line
//$config_file = parse_ini_file("./properties/config.ini");
//include the header file
include("header.php");
$lw->debug("Loaded header");
//include the body template
include("body.php");
$lw->debug("Loaded body");
$dbManager->releaseConnection($conn);
$lw->debug("Released connection");
?>
<script type="text/javascript">
addEvent(this.window,"resize",repaint);
</script>
</html>
